home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 7.17
/
2002-07_Disc_7.17.bin
/
Data
/
items.pcg
/
scripts
/
DefineButton2_278
/
BUTTONCONDACTION on(release).as
< prev
next >
Wrap
Text File
|
2002-04-25
|
779b
|
32 lines
on(release){
TheCurrentitem = 0;
TopItem = 1;
GameBox_y = 224;
searchstr = "";
arGamesDBMain = arGamesDBMaster;
arGamesDBIndex = arGamesIndexMaster;
arGamesDBSlice = arGamesDBMaster;
arGamesIndexSlice = arGamesIndexMaster;
var i = 1;
while(scrollMax >= i)
{
set("menugame" + i,arGamesDBSlice[i - 1]);
set("gamenumber" + i,i);
i += 1;
}
if(dbCount == currentGameCount)
{
setProperty("itemBar" + lastGameBox, _alpha, 10);
}
setProperty("itemBar1", _alpha, 20);
theCurrentGame = arGamesDBIndex[0];
numitems = arGamesDBSlice.length;
num_Games = numitems;
lastButton = 1;
topDB = 1;
dbCount = 1;
currentGameCount = 1;
lastGameBox = 1;
gotoAndPlay(13);
}